home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _A4FF8D517CE4438B8A8825C540D4D2EB < prev    next >
Encoding:
Text File  |  2002-04-06  |  3.6 KB  |  209 lines

  1. {
  2.     \\ CREATE FAVORITE POPUP MENU \\
  3.  
  4.     menuDef 
  5.     {
  6.         name        "createfavorite_popmenu"
  7.         visible        0
  8.         fullscreen    0
  9.         rect        0 0 640 480
  10.         focusColor    .49 .56 .27 1
  11.         style        WINDOW_STYLE_FILLED
  12.         popup
  13.         
  14.         onClose
  15.         {
  16.         }
  17.  
  18.         onESC 
  19.         { 
  20.             close createfavorite_popmenu ;
  21.         }
  22.  
  23.         onOpen
  24.         {
  25.             setcvar  fave_ip_error " "
  26.         }
  27.  
  28.         itemDef
  29.         {
  30.             name        window
  31.             rect        0 0 640 480
  32.             style        WINDOW_STYLE_FILLED
  33.             backcolor    0 0 0 .5
  34.             visible        1
  35.             decoration
  36.         }
  37.  
  38.         itemDef 
  39.         {
  40.             name        window
  41.             rect        202 122 260 260
  42.             background    "gfx/menus/backdrop/requestor"
  43.             style        WINDOW_STYLE_SHADER
  44.             visible        1
  45.             decoration
  46.         }
  47.  
  48.         itemDef 
  49.         {
  50.             name        window
  51.             text        "New Favorite"
  52.             style        WINDOW_STYLE_FILLED
  53.             textfont    "hud"
  54.             textscale    .53
  55.             rect        214 136 210 33
  56.             textalign    1
  57.             textalignx    108
  58.             textaligny    6
  59.             forecolor    .12 .14 .08 1
  60.             backcolor    0 0 0 .25
  61.             visible        1
  62.             decoration
  63.         }
  64.  
  65.         itemDef 
  66.         {
  67.             name        address
  68.             text        "IP Address"
  69.             style        WINDOW_STYLE_EMPTY
  70.             textfont    "hud"
  71.             textscale    .43
  72.             rect        202 213 110 20
  73.             textalign    1
  74.             textalignx    117
  75.             textaligny    2
  76.             forecolor    .12 .14 .08 1
  77.             visible        1
  78.             decoration
  79.         }
  80.  
  81.         itemDef 
  82.         {
  83.             name        addressEntry
  84.             style        WINDOW_STYLE_FILLED
  85.             maxchars    20
  86.             text        ""
  87.             textfont    "hud"
  88.             textscale    .43
  89.             type        ITEM_TYPE_EDITFIELD
  90.             cvar        "ui_favoriteAddress"
  91.             rect        242 233 160 20
  92.             textalign    0
  93.             textalignx    0
  94.             textaligny    2
  95.             forecolor    1 1 1 1
  96.             backcolor    0 0 0 .25
  97.             visible        1
  98.             
  99.             action
  100.             {
  101.                 play "sound/misc/menus/select.wav" ;
  102.             }
  103.             mouseenter 
  104.             { 
  105.                 play "sound/misc/menus/hilite1.wav" ; 
  106.                 setitemcolor addressEntry backcolor 0 0 0 .75 
  107.             }
  108.             mouseexit 
  109.             { 
  110.                 setitemcolor addressEntry backcolor 0 0 0 .25 
  111.             }
  112.         }
  113.  
  114.         itemDef 
  115.         {
  116.             name        window
  117.             cvar        "fave_ip_error"
  118.             textfont    "hud"
  119.             textscale    .43
  120.             rect        265 260 260 20
  121.             textalignx    2
  122.             textaligny    2
  123.             forecolor    .12 .14 .08 1
  124.             visible        1
  125.             decoration
  126.         }
  127.  
  128.         itemDef 
  129.         {
  130.             name        ok_button
  131.             text        "OK"
  132.             type        ITEM_TYPE_BUTTON
  133.             style        WINDOW_STYLE_FILLED
  134.             rect        255 290 60 26
  135.  
  136.             textfont    "hud"
  137.             textscale    .43
  138.             textalign    0
  139.               textalignx    20
  140.              textaligny    4
  141.             forecolor    .12 .14 .08 1
  142.             backcolor    0 0 0 0
  143.             visible        1
  144.             border        1
  145.             bordercolor    0 0 0 1
  146.             
  147.             action 
  148.             { 
  149.                 play "sound/misc/menus/select.wav" ; 
  150.  
  151.                 uiScript CreateFavorite ; 
  152.  
  153. //                close createfavorite_popmenu ; 
  154.             }
  155.             mouseEnter 
  156.             { 
  157.                 play "sound/misc/menus/hilite1.wav" ; 
  158.                 setitemcolor ok_button backcolor .12 .14 .08 1
  159.                 setitemcolor ok_button forecolor .49 .56 .27 1
  160.             }                 
  161.             mouseExit 
  162.             { 
  163.                 setitemcolor ok_button backcolor 0 0 0 0
  164.                 setitemcolor ok_button forecolor .12 .14 .08 1
  165.             }
  166.         }
  167.  
  168.         itemDef 
  169.         {
  170.             name        cancel_button
  171.             text        "Cancel"
  172.             type        ITEM_TYPE_BUTTON
  173.             style        WINDOW_STYLE_FILLED
  174.             rect        325 290 60 26
  175.  
  176.             textfont    "hud"
  177.             textscale    .43
  178.             textalign    0
  179.               textalignx    7
  180.              textaligny    4
  181.             forecolor    .12 .14 .08 1
  182.             backcolor    0 0 0 0
  183.             visible        1
  184.             border        1
  185.             bordercolor    0 0 0 1
  186.             
  187.             action 
  188.             { 
  189.                 play "sound/misc/menus/select.wav" ; 
  190.  
  191.                 uiScript CancelCreateFavorite ;
  192.  
  193.                 close createfavorite_popmenu ; 
  194.             }
  195.             mouseEnter 
  196.             { 
  197.                 play "sound/misc/menus/hilite1.wav" ; 
  198.                 setitemcolor cancel_button backcolor .12 .14 .08 1
  199.                 setitemcolor cancel_button forecolor .49 .56 .27 1
  200.             }                 
  201.             mouseExit 
  202.             { 
  203.                 setitemcolor cancel_button backcolor 0 0 0 0
  204.                 setitemcolor cancel_button forecolor .12 .14 .08 1
  205.             }
  206.         }
  207.     }
  208. }
  209.